<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
  <head><title>HR System :: person list</title></head>
  <body>
    <table border="1">
            <tr>
              <td>First Name</td>
              <td>Last Name</td>
              <td>Job Title</td>
              <td>Delete</td>
            </tr>
      <c:forEach items="${employeeList}" var="employee" varStatus="status">
        <tr>
          <td id="fn<c:out value="${status.count}"/>"><c:out value="${employee.firstName}"/></td>
          <td id="ln<c:out value="${status.count}"/>"><c:out value="${employee.lastName}"/></td>
          <td id="jt<c:out value="${status.count}"/>"><c:out value="${employee.jobTitle}"/></td>
          <td>
            <a href="delete?lastName=${employee.lastName}" id="delete<c:out value="${employee.lastName}"/>">Delete</a>
          </td>
        </tr>
      </c:forEach>
    </table>
    <a href="create" id="newPerson">Create New Person</a>

    <form action="upload" enctype="multipart/form-data" method="post">

    <p>
    Please specify a file:<br>
    <input id="upload-file" type="file" name="upload-file" size="40">
    </p>
    <input id="upload-button" type="submit" value="Upload CSV">

    </form>

    </body>
</html>
